package com.project.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.project.auth.model.system.SysUser;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;

/**
 * @Description
 * @Author : XIAOMING
 * @create 2023/4/6 10:08
 */
public interface SysUserService extends IService<SysUser> {
    void updateStatus(Long id, Integer status);

    /**
     * 根据用户名获取用户对象
     * @param username
     * @return
     */
    SysUser getByUsername(String username);

    /**
     * 获取当前用户
     * @return
     */
    Map<String, Object> getCurrentUser();
}
